<!--<?php
print <<<EOT
-->

<div class="store-panel">
	<div class="hd">
		<h3>二手房源</h3>
		<a class="more" href="{$_viewer->baseUrl}a=sale">更多>></a>
	</div>
<!--
EOT;
if (!empty($_viewer->saleResult)) {
print <<<EOT
-->
	<div class="bd">
		<ul class="store-house-list cc">
<!--
EOT;
foreach($_viewer->saleResult as $value){
$url = PW_HouseUrl::saleInfo($value['houseid']);
$value[postdate] = get_date($value[posttime]);
print <<<EOT
-->
			<li class="item">
				<div class="pic"><a href="$url" target="_blank"><img src="$value[thumb]" width="160" height="125" /></a></div>
				<h3 class="summary"><a href="$url" target="_blank">{$value[subject]}</a></h3>
				<ul class="attr">
					<li>户型：{$value[room]}</li>
					<li>面积：{$value[acreage]}平米</li>
					<li>售价：<em class="price">{$value[price]}</em>万</li>
				</ul>
			</li>
<!--
EOT;
}
print <<<EOT
-->
		</ul>
	</div>
<!--
EOT;
} else {
print <<<EOT
-->
	<div class="bd">
		暂无此类房源
	</div>
<!--
EOT;
}
print <<<EOT
-->	
	<div class="hd">
		<h3>租房房源</h3>
		<a class="more" href="{$_viewer->baseUrl}a=hire">更多>></a>
	</div>
<!--
EOT;
if (!empty($_viewer->hireResult)) {
print <<<EOT
-->	
	<div class="bd">
		<ul class="store-house-list cc">
<!--
EOT;
foreach($_viewer->hireResult as $hireValue){
$hireUrl = PW_HouseUrl::hireInfo($hireValue['houseid']);
$hireValue[postdate] = get_date($hireValue[posttime]);
print <<<EOT
-->
			<li class="item">
				<div class="pic"><a href="$hireUrl" target="_blank"><img src="$hireValue[thumb]" width="160" height="125" /></a></div>
				<h3 class="summary"><a href="$hireUrl" target="_blank">{$hireValue[subject]}</a></h3>
				<ul class="attr">
					<li>户型：{$hireValue[room]}</li>
					<li>面积：{$hireValue[acreage]}平米</li>
					<li>租金：<em class="price">{$hireValue[price]}</em>元/月</li>
				</ul>
			</li>
<!--
EOT;
}
print <<<EOT
-->
		</ul>
	</div>
<!--
EOT;
} else {
print <<<EOT
-->
	<div class="bd">
		暂无此类房源
	</div>
<!--
EOT;
}
print <<<EOT
-->	
</div>
</div>
<!--
EOT;
?>-->